package qc.gateway.dto;

import lombok.Data;
import org.springframework.http.HttpMethod;
import org.springframework.http.HttpStatus;
import org.springframework.http.MediaType;
import org.springframework.util.MultiValueMap;

import java.net.InetSocketAddress;

/**
 * 渠成接口日志信息
 *
 * @author QuCheng Tech
 * @since 2023/11/7
 */
@Data
public class QcApiLogDto {
    public String requestId;
    public long startTime;
    public long endTime;
    public MediaType requestHeaderContentType;
    public InetSocketAddress requestHeaderUserAgent;
    public InetSocketAddress requestRemoteAddress;
    public String token;
    public Integer userId;
    public String requestUri;
    public String requestUrl;
    public HttpMethod requestMethod;
    public MultiValueMap<String, String> requestQueryParams;
    public String requestBodyJson;
    public HttpStatus responseHttpStatus;
    public MediaType responseMediaType;
    public long responseContentLength;
    public String responseRawData;
    public String responseResultJson;
}
